package com.hongyi.system.domain.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hongyi.common.framework.validate.AddGroup;
import com.hongyi.common.framework.validate.EditGroup;
import com.hongyi.common.mybatis.domain.BaseEntity;
import com.hongyi.system.domain.SysDictType;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 字典类型表
 */
@ApiModel(description="字典类型表")
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysDictType.class)
@TableName(value = "sys_dict_type")
public class SysDictTypeDto extends BaseEntity {

    /**
     * 字典主键
     */
    @TableId(value = "dict_id")
    @ApiModelProperty(value="字典主键")
    private Long dictId;

    /**
     * 字典名称
     */
    @ApiModelProperty(value="字典名称")
    @NotBlank(message = "字典名称不能为空",groups = {AddGroup.class, EditGroup.class})
    private String dictName;

    /**
     * 字典类型
     */
    @ApiModelProperty(value="字典类型")
    @NotBlank(message = "字典类型不能为空",groups = {AddGroup.class, EditGroup.class})
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty(value="状态（0正常 1停用）")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;
}